package cn.itcast.consumer;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * 消息消费的测试，只要加载applicationContext-activemq-consumer.xml配置文件即可
 */
public class EmailConsumer {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext applicationContext =
                new ClassPathXmlApplicationContext("classpath:spring/applicationContext-activemq-consumer.xml");
        System.in.read();
    }
}
